<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>修改</h1>
<form th:action="@{/users/update}" method="post">
    <input type="hidden" name="id" th:value="${user.id}">
    <table>
        <tr>
            <td>account</td>
            <td><input name="account" th:value="${user.account}"></td>
        </tr>
        <tr>
            <td>realName</td>
            <td><input name="realName" th:value="${user.realName}"></td>
        </tr>
        <tr>
            <td>password</td>
            <td><input name="password" type="password" th:value="${user.password}"></td>
        </tr>
        <tr>
            <td>生日</td>
            <td><input name="birthday" type="date" th:value="${#dates.format(user.birthday, 'yyyy-MM-dd')}"></td>
        </tr>
        <tr>
            <td colspan="2"><input type="submit" value="修改"> </td>
        </tr>
    </table>
</form>
</body>
</html>